<%--
  Created by IntelliJ IDEA.
  User: Yancyxiaoone
  Date: 2022/11/6
  Time: 11:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib  uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>显示页面</title>
</head>
<style>
    table {
        margin: auto;
    }
</style>
<body style="text-align: center">
<h1>用户表</h1>
<c:if test="${empty map}">
    <h2>没有此人</h2>
</c:if>
<c:if test="${not empty map}">
    <table class="tb" border="1" cellspacing="0" cellpadding="0">
        <tr>
            <th>序号</th>
            <th>姓名</th>
            <th>密码</th>
        </tr>
        <c:forEach items="${map}" var="user" varStatus="x">
            <tr>
                <td>${x.count}</td>
                <td>${user.value.username}</td>
                <td>${user.value.password}</td>
            </tr>
        </c:forEach>
    </table>
</c:if>
<a href="index.jsp">返回主页继续登记</a>
</body>
</html>